/*
 * @Description  : 
 * @Author       : zhao
 * @Date         : 2022-07-11 14:43:57
 * @LastEditors  : zhao
 * @LastEditTime : 2022-08-02 19:47:53
 */

// 定义接口来定义对象的类型
interface SearchType {

    label?: string;
    type?: string;
    placeholder?: string;
    prop?: string;
    options?: string;
}
interface tableHeader {

    ApplicationNo: string;
    ApplicationDate: Date;
    Reference: string;
    fileNumber: number;

}
interface TableData {

    ApplicationNo: string;
    ApplicationDate: Date;
    Reference: string;
    fileNumber: number;

}
interface DATA {
    data: {
        searchType: Array<SearchType>;
        tableHeader: Array<tableHeader>;
        tableData: Array<TableData>;
    }
}
const data = {
    searchType: [
        { label: '档号：', type: 'input', placeholder: '请输入档号', prop: "snNos", },
        { label: '申请单号：', type: 'inputTwo', placeholder: '请输入申请单号', prop: "tableNoBegin", prop2: 'tableNoEnd' },
        // {
        //     label: '审核状态：', type: 'select', placeholder: '请选择审核状态', prop: "ReviewState", options: [
        //         { label: '待审核', value: '待审核' },
        //         { label: '审核驳回', value: '审核驳回' },
        //         { label: '审核通过', value: '审核通过' },
        //         { label: '已完成', value: '已完成' },
        //         { label: '已过期', value: '已过期' },
        //     ]
        // },
        { label: '申请日期：', type: 'datePicker', placeholder: '开始日期', placeholder2: '结束日期', prop: "TimeDate", value1: 'applicationTimeBegin', value2: 'applicationTimeEnd' },
        {
            label: '借阅单位：', type: 'select', placeholder: '请选择借阅单位', prop: "workCompany", options: []
        },
        {
            type: 'button', options: [
                { name: '查询', icon: 'fa fa-search' },
            ]
        },
    ],
    tableHeader: [
        { prop: 'tableNo', label: '申请单号', width: '' },
        { prop: 'applicationTime', label: '申请日期', width: '' },
        { prop: 'snNos', label: '档号', width: '' },
        { prop: 'fileNumber', label: '文件数量', width: '' },
        { prop: 'reviewComments', label: '审核意见', width: '' },
        { prop: 'state', label: '审核状态', width: '' },
        {
            label: '操作', width: '160', type: 'button', options: [
                { name: '详情' },

            ]
        },
    ],
    tableData: []
}




export default data